package com.bella.springcloud.config;/**
 * @program: cloud2022
 * @description: 配置类
 * @packagename: com.bella.springcloud.config
 * @author: Bella白
 * @date: 2022-08-31 19:04
 **/

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author: bella白
 * @Title: ApplicationContextConfig
 * @ProjectName: cloud2022
 * @Description:
 * @date: 2022/8/31 19:04
 */
@Configuration
public class ApplicationContextConfig {
    @Bean
    @LoadBalanced//负载均衡的能力
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }
    //applicationConext.xml <bean id="" class="">
}
